package com.sub.framework.redis;


import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;
import org.springframework.stereotype.Component;

@Component
public class RedisListener implements MessageListener {

    @Override
    public void onMessage(Message message, byte[] pattern) {
        System.out.println("onPMessage pattern " + new String(pattern) + " " + " " + message);

        String s = message.toString();
        System.out.println("=-=-" + s);
    }
}
